package com.flower.enjoyment.flower.service;

import com.flower.enjoyment.flower.entity.UserAssess;
import com.flower.enjoyment.flower.entity.UserHobby;
import com.flower.enjoyment.flower.entityDo.AssessImgDo;
import com.flower.enjoyment.flower.entityDo.UserAssessDo;
import com.github.pagehelper.Page;

import java.util.List;

public interface UserAssessService {
    /**
     * 获取首页评论信息
     * @return
     */
    public List<UserAssessDo> selectUserAssessListByHome(String userId);

    /**
     * 评价详情
     * @param id
     * @return
     */
    UserAssessDo selectByPrimaryKey(String id);

    /**
     * 新增评价
     * @param record
     * @return
     */
    int insert(UserAssess record, List<AssessImgDo> assessImgDos) throws Exception;

    /**
     * 新增用户喜欢
     * @param userHobby
     * @return
     */
    int insertUserHobby(UserHobby userHobby);

    /**
     * 删除用户喜欢
     * @param
     * @return
     */
    int deleteUserHobby(String assessId,String userId);

    /**
     * 评论ID
     * @param assessId
     * @return
     */
    int deleteUserAssess(String assessId,String userId);


    /**
     * 我的评论
     * @param pageNo
     * @param pageSize
     * @param userId
     * @return
     */
    public Page<UserAssessDo> selectUserAssessListUserIdByPage(Integer pageNo, Integer pageSize,String userId);

    /**
     * 大家说
     * @param userId
     * @param shopId
     * @return
     */
    public Page<UserAssessDo> selectEveryBodySayListByPage(Integer pageNo, Integer pageSize, String userId,String shopId);
}
